import http from '@/utils/http'
/**
 * 获取地址列表
 */
export function addressList () {
  return http({
    url: '/member/address'
  })
}
/**
 * 添加地址信息
 */
export function postAddressList (data) {
  return http({
    method: 'POST',
    url: '/member/address',
    data
  })
}
/**
 * 删除地址
 */
export function Deladdreslist (id) {
  return http({
    method: 'DELETE',
    url: `/member/address/${id}`
  })
}
/**
 * 修改地址
 */
export function putAddressList (data) {
  return http({
    method: 'PUT',
    url: `/member/address/${data.id}`,
    data
  })
}
/**
 * 地址详情
 */
export function detaileAddress (id) {
  return http({
    url: `/member/address/${id}`
  })
}
